<?php
namespace Core\Event\Application\Annotation;
use Core\Event\Annotation;
class View extends Annotation
{
    //view render enable
    public function viewRender($event) {
        $this->view->enable();
        if($template = $this->_annotation->getNamedParameter('template')) {
            $template = $this->dir->app("{$this->dispatcher->getModuleName()}/views/{$template}");
            $this->view->pick($template);
        }
        return true;
    }
}